#pragma once

#include <string.h>

#define SIZE 1024

//简化的刷新策略
#define FULSH_NOW 0
#define FULSH_LINE 1
#define FULSH_ALL 2
typedef struct IO_FILE
{
    int fileno;
    int flag;//刷新方式
    //char inbuffer[SIZE];//输入缓冲区
    //int in_pos;
    char outbuffer[SIZE];//输出缓冲区
    int out_pos;//被使用的大小

}_FILE;

_FILE* _fopen(const char*filename, const char* flag);
int _fwrite(_FILE* fp,const char*s,int len);
void _fclose(_FILE* fp);
